<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加/修改课程</title>
<script type="text/javascript">
function check(form){
	if(form.name.value==""){
		alert("请输入课程名称!");
		form.name.focus();
		return false;
	}
	return true;
}
</script>
</head>
<body>
<center>
<br><br><br>
<table width="292" height="175" border="0" cellpadding="0" cellspacing="0" background="${path}/image/subBG.jpg">
<tr>
    <td valign="top">
    <table width="100%" height="175" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="12%" height="47">&nbsp;</td>
        <td width="85%" valign="bottom">
        <table width="86%" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="word_white">添加/修改课程</td>
        </tr>
        </table></td>
        <td width="3%">&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
        <table width="100%" height="106"  border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="106" align="center" valign="middle">
			<form action="saveLesson.do" method="post" onsubmit="return check(this)" >
			<input name="id" value="${lesson.id }" type="hidden">
			<table height="77"  border="0" cellpadding="0" cellspacing="0">
      		<tr>
        		<td width="72" height="30" align="center">课程名称</td>
        		<td width="176">
          			<input name="name" value="${lesson.name }">	
          		</td>
      		</tr>
      		<tr>
        		<td height="47" align="center">&nbsp;</td>
        		<td><input type="submit" value="保存">
					&nbsp;
					<button onclick="window.close();">关闭</button>
				</td>
      		</tr>
    		</table>
			</form>
			</td>
        </tr>
        </table>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    </table>
    </td>
</tr>
</table>
</center>
</body>
</html>